package com.student.entities;

import java.util.Date;

public class GoodsEntity {
	private int id = 0;
	private int classId = 0;
	private String name = "";
	private int sellerId = 0;
	private String sellerName = "";
	private int saleClass = 0;
	private double price = 0;
	private double discount = 1;
	private String imageUrl = "";
	private String nutrition = "";
	private String keyWords = "";
	private String descrition = "";
	private int saleCount = 0;
	private Date onSaleTime = null;
	private double rank;
	private String className = "";

	public GoodsEntity() {
	}

	public GoodsEntity(int id, int classId, String name, int sellerId,
			String sellerName, int saleClass, double price, double discount,
			String imageUrl, String nutrition, String keyWords,
			String descrition, int saleCount, Date onSaleTime, double rank,
			String className) {
		this.id = id;
		this.classId = classId;
		this.name = name;
		this.sellerId = sellerId;
		this.sellerName = sellerName;
		this.saleClass = saleClass;
		this.price = price;
		this.discount = discount;
		this.imageUrl = imageUrl;
		this.nutrition = nutrition;
		this.keyWords = keyWords;
		this.descrition = descrition;
		this.saleCount = saleCount;
		this.onSaleTime = onSaleTime;
		this.rank = rank;
		this.className = className;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public double getRank() {
		return rank;
	}

	public void setRank(double rank) {
		this.rank = rank;
	}

	public String getSellerName() {
		return sellerName;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setClassId(int classId) {
		this.classId = classId;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSellerId(int sellerId) {
		this.sellerId = sellerId;
	}

	public void setSaleClass(int saleClass) {
		this.saleClass = saleClass;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public void setDiscount(double discount) {
		this.discount = discount;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public void setNutrition(String nutrition) {
		this.nutrition = nutrition;
	}

	public void setKeyWords(String keyWords) {
		this.keyWords = keyWords;
	}

	public void setDescrition(String descrition) {
		this.descrition = descrition;
	}

	public void setSaleCount(int saleCount) {
		this.saleCount = saleCount;
	}

	public void setOnSaleTime(Date onSaleTime) {
		this.onSaleTime = onSaleTime;
	}

	public int getId() {
		return id;
	}

	public int getClassId() {
		return classId;
	}

	public String getName() {
		return name;
	}

	public int getSellerId() {
		return sellerId;
	}

	public int getSaleClass() {
		return saleClass;
	}

	public double getPrice() {
		return price;
	}

	public double getDiscount() {
		return discount;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public String getNutrition() {
		return nutrition;
	}

	public String getKeyWords() {
		return keyWords;
	}

	public String getDescrition() {
		return descrition;
	}

	public int getSaleCount() {
		return saleCount;
	}

	public Date getOnSaleTime() {
		return onSaleTime;
	}

	@Override
	public String toString() {
		return "GoodsEntity [id=" + id + ", classId=" + classId + ", name="
				+ name + ", sellerId=" + sellerId + ", sellerName="
				+ sellerName + ", saleClass=" + saleClass + ", price=" + price
				+ ", discount=" + discount + ", imageUrl=" + imageUrl
				+ ", nutrition=" + nutrition + ", keyWords=" + keyWords
				+ ", descrition=" + descrition + ", saleCount=" + saleCount
				+ ", onSaleTime=" + onSaleTime + "]";
	}

}
